home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
kernel
/
port
/
gctest.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-10
|
1KB
|
88 lines
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/
#include "generics.h"
#define MEMU \
printf("Memory usage %ld, %ld\n", gMaxMemUsed(Dynace), gCurMemUsed(Dynace))
main(int argc, char *argv[])
{
object obj;
long n, mba, cmu;
InitClasses(&argc);
/* The following line is used to turn on the automatic garbage
collector (un-comment after the first run) */
// gSetMemoryBufferArea(Dynace, 50000L);
/* Create enough new objects to fill up all the memory of a PC
(since no objects are ever explictly disposed). */
MEMU;
for (n=0 ; n++ != 125000L ; ) {
if (!(n % 1000L))
printf("%ld\n", n);
obj = vNew(DoubleFloat, 3.141);
}
gPrint(obj, stdoutStream);
gGC(Dynace);
MEMU;
gPrint(obj, stdoutStream);
getch();
return 0;
}
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/